package com.czxy.Service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czxy.Mapper.TeaMapper;
import com.czxy.Service.TeaService;
import com.czxy.Teacher;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ：陈进南
 * @date ：Created in 2020/12/28 20:12
 * @description：陈进南的无敌代码
 */
@Service
@Transactional
public class TeaServiceimpl extends ServiceImpl<TeaMapper, Teacher> implements TeaService {


    @Resource
    private TeaMapper teaMapper;
    @Override
    public void insert(Teacher teacher) {
        teaMapper.insert(teacher);
    }

    @Override
    public void del(Integer id) {
        teaMapper.deleteById(id);
    }
}
